package com.kmproject.haifu.di.module;

import com.jess.arms.di.scope.ActivityScope;
import com.kmproject.haifu.mvp.contract.CustomRentingSeekingListContract;
import com.kmproject.haifu.mvp.model.CustomRentingSeekingListModel;

import dagger.Module;
import dagger.Provides;

/**
 *
 */
@Module
public class CustomRentingSeekingListModule {
    private CustomRentingSeekingListContract.View view;

    /**
     * 构建PersonalHpBisDataModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public CustomRentingSeekingListModule(CustomRentingSeekingListContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    CustomRentingSeekingListContract.View provideCustomRentingSeekingListView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    CustomRentingSeekingListContract.Model provideCustomRentingSeekingListModel(CustomRentingSeekingListModel model) {
        return model;
    }
}